package com.zzy.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_warehouse_area_loca")
public class WarehouseLocal {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String locaCode;

    private Integer warehouseAreaId;
    //不在表中
    @TableField(exist = false)
    private String warehouseAreaName;

    private Integer warehouseId;

    @TableField(exist = false)
    private String warehouseName;

    private Integer locaLen;

    private Integer locaWidth;

    private Integer locaHeight;

    private Integer localVolume;

    private Integer localBearingCapacity;

    private String tunnelNumber;

    private String shelfNumber;

    private String layerNumber;
    @TableField(exist = false)
    private String category;

    private String saasId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String createBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private String updateBy;

    private Integer isDel;
}
